﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Sfcorp.form;
using DevExpress.XtraSplashScreen;
using Dev.Control.Form;
using DevExpress.Xpf.Printing.ServiceModel.DataContracts;
using DevExpress.Skins;
using DevExpress.Data.Filtering;

namespace Sfcorp
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            DevExpress.UserSkins.BonusSkins.Register();
            //DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Glass Oceans");
            SkinManager.EnableFormSkins();
            EnumProcessingHelper.RegisterEnum<TaskStatus>();


            //暂不调用
            string sPC_Name = System.Net.Dns.GetHostName().ToUpper();
            if (sPC_Name != "JFT" && sPC_Name != "KELLY" && sPC_Name != "JVC-PC")
            {
                SplashScreenManager.ShowForm(typeof(frmWaitHD));
            }
            Gt.Login.frmLogin frmLogin = new Gt.Login.frmLogin();
            if (frmLogin.ShowDialog() == DialogResult.OK)
            {
                //SplashScreenManager.ShowForm(typeof(frmWaitHD));
                Application.Run(new MainForm());
            }
            else
                Application.Exit();

        }
    }
}
